/**
 * 
 */
package br.com.devschool.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import br.com.devschool.util.BaseEntity;

/**
 * @author ATILLA
 *
 */
@Entity
@Table
public class Calendario extends BaseEntity implements Serializable{

	private static final long serialVersionUID = -6417705182550276107L;
	
	private Date 	dataAula;
	private boolean statusAula;
	private Turma	turma;
	
	public Calendario(Integer id, Date dataAula, boolean statusAula,
			Turma turma) {
		super(id);
		this.dataAula 	= dataAula;
		this.statusAula = statusAula;
		this.turma 		= turma;
	}
	
	public Calendario() { }

	@Column(name="data_aula")
	@Temporal(TemporalType.DATE)
	public Date getDataAula() {
		return dataAula;
	}

	public void setDataAula(Date dataAula) {
		this.dataAula = dataAula;
	}

	@Column(name="status_aula")
	public boolean isStatusAula() {
		return statusAula;
	}

	public void setStatusAula(boolean statusAula) {
		this.statusAula = statusAula;
	}

	@ManyToOne
	@JoinColumn(name="id_turma")
	public Turma getTurma() {
		return turma;
	}

	public void setTurma(Turma turma) {
		this.turma = turma;
	}
	
}
